import { Post, Get, Patch, Put, Delete, Download, ax } from './http';
import { type } from './interface';
import qs from 'qs';
export namespace Sales {
    /**
     * 获取所有片区
     */
    export var GetAreas = (): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Sales/GetAreas`, {});
    };
    /**
     * 获取所有机型
     */
    export var GetModels = (): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Sales/GetModels`, {});
    };
    /**
     * 获取机型销量
     */
    export var GetSalesByModel = (query: type.sales_GetSalesByModelReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Sales/GetSalesByModel?${qs.stringify(query)}`, {});
    };
    /**
     * 获取片区销量
     */
    export var GetSalesByArea = (query: type.sales_GetSalesByAreaReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Sales/GetSalesByArea?${qs.stringify(query)}`, {});
    };
    /**
     * 近十日销量
     */
    export var GetSalesByTenDays = (query: type.sales_GetSalesByTenDaysReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Sales/GetSalesByTenDays?${qs.stringify(query)}`, {});
    };
    /**
     * 近十月销量
     */
    export var GetSalesByTenMonths = (query: type.sales_GetSalesByTenMonthsReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Sales/GetSalesByTenMonths?${qs.stringify(query)}`, {});
    };
    /**
     * 近十月销售目标
     */
    export var GetSalesTargetByTenMonths = (query: type.sales_GetSalesTargetByTenMonthsReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Sales/GetSalesTargetByTenMonths?${qs.stringify(query)}`, {});
    };
    /**
     * 获取销售列表
     */
    export var GetList = (query: type.sales_GetListReq): Promise<type.Int64Int64XsmxListTuple> => {
        return Get(`/api/Sales/GetList?${qs.stringify(query)}`, {});
    };
    /**
     * 获取销售目标列表
     */
    export var GetSalesTargetList = (query: type.sales_GetSalesTargetListReq): Promise<type.Int64Int64Int64Int64XsmbListTuple> => {
        return Get(`/api/Sales/GetSalesTargetList?${qs.stringify(query)}`, {});
    };
    /**
     * 获取整机销量
     */
    export var GetSales = (query: type.sales_GetSalesReq): Promise<type.GetChildsRspListResponse> => {
        return Get(`/api/Sales/GetSales?${qs.stringify(query)}`, {});
    };
}
